import { logs } from "../enums";

// 最简代码，也就是这些字段必须有
export default {
  path: "/logs",
  meta: {
    icon: "ri:align-justify",
    title: "日志管理",
    rank: logs,
    showLink: true
  },
  children: [
    {
      path: "/logs/logsSetting",
      name: "logsSetting",
      component: () => import("@/views/logs/setting/index.vue"),
      meta: {
        title: "日志采集配置"
      }
    },
    {
      path: "/logs/totalLogs",
      name: "totalLogs",
      component: () => import("@/views/logs/total/index.vue"),
      meta: {
        title: "日志总览",
        roles: ["admin"]
      }
    },
    {
      path: "/logs/callLogs",
      name: "callLogs",
      component: () => import("@/views/logs/call/index.vue"),
      meta: {
        title: "调用日志"
      }
    },
    {
      path: "/logs/serviceLogs",
      name: "serviceLogs",
      component: () => import("@/views/logs/service/index.vue"),
      meta: {
        title: "服务日志"
      }
    }
  ]
};
